package com.ruoyi.order.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单信息对象 order
 * 
 * @author ruoyi
 * @date 2024-07-29
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单编号 */
    private Long orderId;

    /** 购物车编号 */
    private Long shopingId;

    /** 订单生成日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单生成日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderDate;

    /** 消费总金额 */
    @Excel(name = "消费总金额")
    private BigDecimal sumPrice;

    /** 送货地址 */
    @Excel(name = "送货地址")
    private String address;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    /** 学生学号 */
    @Excel(name = "学生学号")
    private Long studentId;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 收货人 */
    @Excel(name = "收货人")
    private String consignee;

    /** 0为未删除，1为已删除 */
    @Excel(name = "0为未删除，1为已删除")
    private String isDelete;

    /** 菜品名称 */
    @Excel(name = "菜品名称")
    private String name;

    /** 菜品图片 */
    @Excel(name = "菜品图片")
    private String picture;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setShopingId(Long shopingId) 
    {
        this.shopingId = shopingId;
    }

    public Long getShopingId() 
    {
        return shopingId;
    }
    public void setOrderDate(Date orderDate) 
    {
        this.orderDate = orderDate;
    }

    public Date getOrderDate() 
    {
        return orderDate;
    }
    public void setSumPrice(BigDecimal sumPrice) 
    {
        this.sumPrice = sumPrice;
    }

    public BigDecimal getSumPrice() 
    {
        return sumPrice;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setConsignee(String consignee) 
    {
        this.consignee = consignee;
    }

    public String getConsignee() 
    {
        return consignee;
    }
    public void setIsDelete(String isDelete) 
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete() 
    {
        return isDelete;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPicture(String picture) 
    {
        this.picture = picture;
    }

    public String getPicture() 
    {
        return picture;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("shopingId", getShopingId())
            .append("orderDate", getOrderDate())
            .append("sumPrice", getSumPrice())
            .append("address", getAddress())
            .append("status", getStatus())
            .append("studentId", getStudentId())
            .append("phone", getPhone())
            .append("consignee", getConsignee())
            .append("isDelete", getIsDelete())
            .append("name", getName())
            .append("picture", getPicture())
            .toString();
    }
}
